Adwaita: colorswatch on selected elements style fix
authorLapo Calamandrei <calamandrei@gmail.com>
Tue, 21 Oct 2014 14:34:42 +0000 (16:34 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Tue, 21 Oct 2014 14:34:42 +0000 (16:34 +0200)
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index eb9c5d6fd7760fe00066e889c61501b7c76f37ff..f58be595ee46b3e28dd6bed32a803ad08471b962 100644 (file)
@@ -2902,7 +2902,6 @@ GtkColorSwatch {
   }
   // nth-child works just on the custom colors row
 
-
   // hover effect
   &:hover {
     background-image: linear-gradient(135deg, transparentize(white, 0.3),
@@ -2952,6 +2951,15 @@ GtkColorSwatch {
     &:backdrop { @include button(backdrop); }
     .overlay { @include button(undecorated); } // reset the overlay to not cover the button style underneat
   }
+
+  // take care of colorswatches on selected elements
+  :selected & {
+    box-shadow: none;
+    &.overlay {
+      border-color: $selected_fg_color;
+    }
+  }
+
 }
 
 
index 7e1d72c4e87508ff47645b7e3973db01bd71f958..fe9f13a6f517f9b1f7a5da1d3b4d42a88c389901 100644 (file)
@@ -4312,6 +4312,10 @@ GtkColorSwatch {
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
       text-shadow: none;
       icon-shadow: none; }
+  :selected GtkColorSwatch {
+    box-shadow: none; }
+    :selected GtkColorSwatch.overlay {
+      border-color: #ffffff; }
 
 /********
  * Misc *
index 9c5c811b7f2f611f49d4f805892341fbfb038440..b40196d9b5adfe43b05d9978344bf6811df71d43 100644 (file)
@@ -4473,6 +4473,10 @@ GtkColorSwatch {
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0);
       text-shadow: none;
       icon-shadow: none; }
+  :selected GtkColorSwatch {
+    box-shadow: none; }
+    :selected GtkColorSwatch.overlay {
+      border-color: #ffffff; }
 
 /********
  * Misc *